package com.xuecheng.content.api;

import com.xuecheng.content.model.dto.CourseCategoryTreeDTO;
import com.xuecheng.content.service.CourseCategoryService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CourseCategoryController {

    @Resource
    CourseCategoryService courseCategoryService;

    @Operation(summary = "课程接口")
    @GetMapping("course-category/tree-nodes")
    public List<CourseCategoryTreeDTO> queryTreeNodes(){

        return courseCategoryService.queryTreeNodes("1");
    }

}
